home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Xm / XmTextFindString.z / XmTextFindString
Encoding:
Text File  |  2001-04-17  |  4.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg((((3333XXXX))))      UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV      XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg - A Text function that finds the beginning
  10.           position of a text string
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/Xm.h>
  14.           BBBBoooooooolllleeeeaaaannnn XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg(
  15.           WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
  16.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ssssttttaaaarrrrtttt,
  17.           cccchhhhaaaarrrr ****ssssttttrrrriiiinnnngggg,
  18.           XXXXmmmmTTTTeeeexxxxttttDDDDiiiirrrreeeeccccttttiiiioooonnnn ddddiiiirrrreeeeccccttttiiiioooonnnn,
  19.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ****ppppoooossssiiiittttiiiioooonnnn);
  20.  
  21.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  22.           This page documents Motif 2.1.
  23.  
  24.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.           XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg locates the beginning position of a
  26.           specified text string. This routine searches forward or
  27.           backward for the first occurrence of the string starting
  28.           from the given start position.  If it finds a match, the
  29.           function returns the position of the first character of the
  30.           string in _p_o_s_i_t_i_o_n.  If the match string begins at the
  31.           current position, this routine returns the current position.
  32.  
  33.           _w_i_d_g_e_t    Specifies the Text widget ID.
  34.  
  35.           _s_t_a_r_t     Specifies the character position from which the
  36.                     search proceeds. This is an integer number of
  37.                     characters from the beginning of the text buffer.
  38.                     The first character position is 0 (zero).
  39.  
  40.           _s_t_r_i_n_g    Specifies the search string.
  41.  
  42.           _d_i_r_e_c_t_i_o_n Indicates the search direction. It is relative to
  43.                     the primary direction of the text. The possible
  44.                     values are
  45.  
  46.                     XXXXmmmmTTTTEEEEXXXXTTTT____FFFFOOOORRRRWWWWAAAARRRRDDDD
  47.                               The search proceeds toward the end of
  48.                               the text buffer.
  49.  
  50.                     XXXXmmmmTTTTEEEEXXXXTTTT____BBBBAAAACCCCKKKKWWWWAAAARRRRDDDD
  51.                               The search proceeds toward the beginning
  52.                               of the text buffer.
  53.  
  54.           _p_o_s_i_t_i_o_n  Specifies the pointer in which the first character
  55.                     position of the string match is returned. This is
  56.                     an integer number of characters from the beginning
  57.                     of the buffer. The first character position is 0
  58.                     (zero). If the function returns False, this value
  59.                     is undefined.
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 4/6/01)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg((((3333XXXX))))      UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV      XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg((((3333XXXX))))
  71.  
  72.  
  73.  
  74.           For a complete definition of Text and its associated
  75.           resources, see XXXXmmmmTTTTeeeexxxxtttt(3).
  76.  
  77.      RRRREEEETTTTUUUURRRRNNNN
  78.           Returns True if a string match is found; otherwise, returns
  79.           False.
  80.  
  81.      RRRREEEELLLLAAAATTTTEEEEDDDD
  82.           XXXXmmmmTTTTeeeexxxxtttt(3) and XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnnggggWWWWccccssss(3).
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 4/6/01)
  130.  
  131.  
  132.  
  133.